class People:
    def __init__(self):
        self.__name="yuhang"
        self.__age=12

    @property
    def age(self):
        return self.__age

    @age.setter
    def age(self,age):
        self.__age=age

p=People()
print(p.age) #12
p.age=3
print(p.age) #3